require "db/migrate/migration_helper"
class CreateUsuarios < ActiveRecord::Migration
extend(MigrationHelper)
  def self.up
    create_table :usuarios do |t|
      t.string :nome,:null => false, :limit => 30
      t.string :sobrenome, :limit => 30
      t.string :senha, :null => false, :limit => 12
      t.binary :foto, :null => false
      t.string :telefone, :limit => 15
      t.string :curriculo
      t.string :email, :limit => 100
      t.text   :resumo
      t.string :instituicao, :limit => 80
      t.timestamps      
    end
  end

  def self.down
    drop_table :usuarios
  end
end
